Backtesting
Shift Daily Returns Data
Criteria | Meet Specification |
---|---|
Shift Daily Returns Data |
The variable
|
Build Universe Based on Filters
Criteria | Meet Specification |
---|---|
Build Universe of Stocks |
The function
They should use the
The returned
|
Factor covariance matrix
Criteria | Meet Specification |
---|---|
Create the factor covariance matrix |
The function
The returned factor covariance matrix should have shape (77, 77) |
Alpha Combination
Criteria | Meet Specification |
---|---|
create a matrix of alpha factors |
The function
The returned
"USFASTD_1DREVRSL"
|
Create an alpha vector |
The function
The returned
|
Objective function
Criteria | Meet Specification |
---|---|
Create the objective function to be minimized |
The
|
Gradient
Criteria | Meet Specification |
---|---|
Create the gradient of the objective function |
The
|
Optimize
Criteria | Meet Specification |
---|---|
Optimize the objective function |
The function
The returned
|
Risk Exposures
Criteria | Meet Specification |
---|---|
Calculate the portfolio's Risk Exposure |
The function
The returned
|
Calculate the portfolio's Alpha Exposure |
The function
The returned
"USFASTD_1DREVRSL"
|
Transaction Costs
Criteria | Meet Specification |
---|---|
Calculate Total Transaction Costs |
The function
|
Profit-and-Loss (PnL) attribution
Criteria | Meet Specification |
---|---|
Profit and Loss attribution |
Correctly calculate the PnL attributed to the alpha factors, the PnL attributed to the risk factors, and attribution to cost.
To calculate the alpha and risk exposures they must use the provided
|
Build portfolio characteristics
Criteria | Meet Specification |
---|---|
build portfolio characteristics |
Correctly calculates the sum of long positions, short positions, net positions, gross market value, and amount of dollars traded. |